package com.moli.iov.down.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * <p>
 * MybatisPlus配置
 * </p>
 *
 * @author zql
 * @since 2019/9/4 11:26
 */
@Configuration
@EnableTransactionManagement
@MapperScan(value = {"com.moli.iov.down.mapper"})
public class MybatisPlusConfig {

  /**
   * 分页插件
   */
  @Bean
  public PaginationInterceptor paginationInterceptor() {
    return new PaginationInterceptor();
  }
}
